<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/inc/taglib.inc"%>
<%@ include file="/WEB-INF/inc/script.inc"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<base href="${base}">
<title>中金通 | 新增产品</title>

<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="font-awesome/css/font-awesome.css" rel="stylesheet">

<!-- Data Tables -->
<link href="css/plugins/dataTables/dataTables.bootstrap.css"
	rel="stylesheet">
<link href="css/plugins/dataTables/dataTables.responsive.css"
	rel="stylesheet">
<link href="css/plugins/dataTables/dataTables.tableTools.min.css"
	rel="stylesheet">

<link href="css/animate.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">

<link href="css/plugins/datapicker/datepicker3.css" rel="stylesheet">
<style type="text/css">
textarea {
	resize: none;
}
</style>

</head>

<body>

	<div id="wrapper">

		<!-- 左侧菜单 -->
		<jsp:include page="/WEB-INF/jsp/common/main-menu.jsp"></jsp:include>

		<div id="page-wrapper" class="gray-bg">
			<div class="row border-bottom">
				<!-- 头部工具栏区 -->
				<jsp:include page="/WEB-INF/jsp/common/main-header.jsp"></jsp:include>
			</div>
			<div class="row wrapper border-bottom white-bg page-heading">
				<div class="col-lg-10">
					<h2>产品管理</h2>
					<ol class="breadcrumb">
						<li><a href="common/platform">Home</a></li>
						<li><a href="product/list">产品管理</a></li>
						<li><a href="product/list">产品列表</a></li>
						<li class="active"><strong>新增产品</strong></li>
					</ol>
				</div>
				<div class="col-lg-2"></div>
			</div>

			<div class="row" style="margin-top: 10px;">
				<div class="col-md-12">
					<div class="tabs-container">
						<ul class="nav nav-tabs">
							<li><a href="product/list"> 产品列表 </a></li>
							<li class="active"><a> 新增产品 </a></li>
						</ul>
						<div class="tab-content">
							<div class="tab-pane active">
								<div class="panel-body">
									<div
										class="wrapper wrapper-content animated fadeInRight ecommerce">
										<div>
											<!-- class="ibox-content" -->
											<form method="post" id="addForm"
												enctype="multipart/form-data" action="product/doAdd"
												class="form-horizontal">
												<%-- <input type="text" name="id" style="display:none" value="${product.id}"> --%>

												<!--Detail form start-->
						                              <div class="row">
									                    <div class="col-sm-6">
									                        <div class="form-group">
									                            <label class="col-sm-4 control-label"><font color="red">*&nbsp;&nbsp;</font>产品代码</label>
						                                        <div class="col-sm-8">
						                                    	   <input type="text" name="productCode" class="form-control" placeholder="产品代码" value="${product.productCode}">
						                                        </div>
									                        </div>
									                    </div>
									                    <div class="col-sm-6">
									                        <div class="form-group">
									                        	<label class="col-sm-2 control-label" style="position:relative;margin-left:-18px;width:19%;"><font color="red">*&nbsp;&nbsp;</font>产品全称</label>
						                                        <div class="col-sm-8">
						                                    	   <input type="text" name="productName" class="form-control" placeholder="产品全称" value="${product.productName}">
						                                        </div>
									                        </div>
									                    </div>
									                 </div>
						                            <!-- <div class="hr-line-dashed"></div> -->
						                             <div class="row">
									                    <div class="col-sm-6">
									                        <div class="form-group">
									                            <label class="col-sm-4 control-label"><font color="red">*&nbsp;&nbsp;</font>产品简称</label>
						                                        <div class="col-sm-8">
						                                    	   <input type="text" name="briefName" class="form-control" placeholder="产品简称" value="${product.briefName}">
						                                        </div>
									                        </div>
									                    </div>
									                    <div class="col-sm-6">
									                        <div class="form-group">
									                            <label class="col-sm-2 control-label"><font color="red">*&nbsp;&nbsp;</font>基金管理人</label>
						                                        <div class="col-sm-8">
						                                    	   <input type="text" name="fundManager" class="form-control" placeholder="基金管理人" value="${product.fundManager}">
						                                        </div>
									                        </div>
									                    </div>
									                 </div>
						                            <!--  <div class="hr-line-dashed"></div> -->
						                              <div class="row">
									                    <div class="col-sm-6">
									                        <div class="form-group">
									                            <label class="col-sm-4 control-label"><font color="red">*&nbsp;&nbsp;</font>基金托管人</label>
						                                        <div class="col-sm-8">
						                                    	   <input type="text" name="fundTrustee" class="form-control" placeholder="基金托管人" value="${product.fundTrustee}">
						                                        </div>
									                        </div>
									                    </div>
									                    <div class="col-sm-6">
									                        <div class="form-group">
									                        	<label class="col-sm-2 control-label"><font color="red">*&nbsp;&nbsp;</font>产品承销</label>
						                                        <div class="col-sm-8">
						                                    	   <input type="text" name="underWriter" class="form-control" placeholder="产品承销" value="${product.underWriter}">
						                                        </div>
									                        </div>
									                    </div>
									                 </div>
						                             <!-- <div class="hr-line-dashed"></div> -->
						                             <div class="row">
									                    <div class="col-sm-6">
									                        <div class="form-group">
									                            <label class="col-sm-4 control-label"><font color="red">*&nbsp;&nbsp;</font>收益类型</label>
						                                        <div class="col-sm-8">
						                                    	   <select id="incomeType" class="form-control m-b" name="incomeType" >
										                              <!-- <option value="">所有</option> -->
										                              <option value="0">固定</option>
										                              <option value="1">浮动</option>
										                              <option value="2">固定+浮动</option>
										                           </select>
						                                        </div>
									                        </div>
									                    </div>
									                      <div class="col-sm-6">
									                        <div class="form-group">
									                        	<label class="col-sm-2 control-label"><font color="red">*&nbsp;&nbsp;</font>运作方式</label>
						                                        <div class="col-sm-8">
						                                    	   <select id="operationMode" class="form-control m-b" name="operationMode" >
										                              <!-- <option value="">所有</option> -->
										                              <option value="0">开放式</option>
										                              <option value="1">封闭式</option>
										                           </select>
						                                        </div>
									                        </div>
									                    </div>
									                 </div>
						                             <!-- <div class="hr-line-dashed"></div> -->
						                              <div class="row">
									                    <div class="col-sm-6">
									                        <div class="form-group">
									                            <label class="col-sm-4 control-label">开放日</label>
						                                        <div class="col-sm-8">
						                                    	   <input id="openDate" type="text" name="openDate" class="form-control" placeholder="开放日" value="${product.openDate}">
						                                        </div>
									                        </div>
									                    </div>
									                    <div class="col-sm-6">
									                        <div class="form-group">
									                        	<label class="col-sm-2 control-label">开放周期</label>
						                                        <div class="col-sm-8">
						                                    	   <input type="text" name="openCycle" class="form-control" placeholder="开放周期" value="${product.openCycle}">
						                                        </div>
									                        </div>
									                    </div>
									                 </div>
						                             <!-- <div class="hr-line-dashed"></div> -->
						                              <div class="row">
									                    <div class="col-sm-6">
									                        <div class="form-group">
									                            <label class="col-sm-4 control-label"><font color="red">*&nbsp;&nbsp;</font>投资规模(元)</label>
						                                        <div class="col-sm-8">
						                                    	   <input type="text" name="scale" class="form-control" placeholder="投资规模" value='<fmt:formatNumber value="${product.scale}"  pattern="0.00"/>'>
						                                        </div>
									                        </div>
									                    </div>
									                    <div class="col-sm-6">
									                        <div class="form-group">
									                        	<label class="col-sm-2 control-label"><font color="red">*&nbsp;&nbsp;</font>投资期限(月)</label>
						                                        <div class="col-sm-8">
						                                    	   <input type="text" name="duration" class="form-control" placeholder="投资期限" value="${product.duration}">
						                                        </div>
									                        </div>
									                    </div>
									                 </div>
						                              <!-- <div class="hr-line-dashed"></div> -->
						                              <div class="row">
									                    <div class="col-sm-6">
									                        <div class="form-group">
									                            <label class="col-sm-4 control-label"><font color="red">*&nbsp;&nbsp;</font>招募开始时间</label>
						                                        <div class="col-sm-8">
						                                    	   <input id="recruitStartTime" type="text" name="recruitStartTime" class="form-control" placeholder="招募开始时间" value='<fmt:formatDate value="${product.recruitStartTime}" pattern="yyyy-MM-dd"/>'>
						                                        </div>
									                        </div>
									                    </div>
									                    <div class="col-sm-6">
									                        <div class="form-group">
									                        	<label class="col-sm-2 control-label"><font color="red">*&nbsp;&nbsp;</font>招募截止时间</label>
						                                        <div class="col-sm-8">
						                                    	   <input id="recruitEndTime" type="text" name="recruitEndTime" class="form-control" placeholder="招募截止时间" value='<fmt:formatDate value="${product.recruitEndTime}" pattern="yyyy-MM-dd"/>'>
						                                        </div>
									                        </div>
									                    </div>
									                 </div>
						                             <!-- <div class="hr-line-dashed"></div> -->
						                             <div class="row">
									                    <div class="col-sm-6">
									                        <div class="form-group">
									                            <label class="col-sm-4 control-label"><font color="red">*&nbsp;&nbsp;</font>投资起点(元)</label>
						                                        <div class="col-sm-8">
						                                    	   <input type="text" name="subStart" class="form-control" placeholder="投资起点" value='<fmt:formatNumber value="${product.subStart}" pattern="0.00"/>'>
						                                        </div>
									                        </div>
									                    </div>
									                    <div class="col-sm-6">
									                        <div class="form-group">
									                        	<label class="col-sm-2 control-label"><font color="red">*&nbsp;&nbsp;</font>递增金额(元)</label>
						                                        <div class="col-sm-8">
						                                    	   <input type="text" name="increaseAmount" class="form-control" placeholder="递增金额" value='<fmt:formatNumber value="${product.increaseAmount}" pattern="0.00"/>'>
						                                        </div>
									                        </div>
									                    </div>
									                 </div>
						                             <!-- <div class="hr-line-dashed"></div> -->
						                              <div class="row">
									                    <div class="col-sm-6">
									                        <div class="form-group">
									                            <label class="col-sm-4 control-label"><font color="red">*&nbsp;&nbsp;</font>开户行</label>
						                                        <div class="col-sm-8">
						                                    	   <input type="text" name="bankDeposit" class="form-control" placeholder="开户行" value="${product.bankDeposit}">
						                                        </div>
									                        </div>
									                    </div>
									                    <div class="col-sm-6">
									                        <div class="form-group">
									                        	<label class="col-sm-2 control-label"><font color="red">*&nbsp;&nbsp;</font>开户名</label>
						                                        <div class="col-sm-8">
						                                    	   <input type="text" name="bankName" class="form-control" placeholder="开户名" value="${product.bankName}">
						                                        </div>
									                        </div>
									                    </div>
									                 </div>
						                              <!-- <div class="hr-line-dashed"></div> -->
						                              <div class="row">
									                    <div class="col-sm-6">
									                        <div class="form-group">
									                            <label class="col-sm-4 control-label"><font color="red">*&nbsp;&nbsp;</font>企业银行账户</label>
						                                        <div class="col-sm-8">
						                                    	   <input type="text" name="bankAccount" class="form-control" placeholder="企业银行账户" value="${product.bankAccount}">
						                                        </div>
									                        </div>
									                    </div>
									                    <div class="col-sm-6">
									                        <div class="form-group">
									                        	<label class="col-sm-2 control-label"><font color="red">*&nbsp;&nbsp;</font>预期收益</label>
						                                        <div class="col-sm-8">
						                                    	   <input type="text" name="prospectiveEarnings" class="form-control" placeholder="预期收益" value="${product.prospectiveEarnings}">
						                                        </div>
									                        </div>
									                    </div>
									                 </div>
						                             <!-- <div class="hr-line-dashed"></div> -->
						                             <div class="row">
									                    <div class="col-sm-6">
									                        <div class="form-group">
									                            <label class="col-sm-4 control-label">收益分配</label>
						                                        <div class="col-sm-8">
						                                    	   <input type="text" name="incomeDivide" class="form-control" placeholder="收益分配" value="${product.incomeDivide}">
						                                        </div>
									                        </div>
									                    </div>
									                    <div class="col-sm-6">
									                        <div class="form-group">
									                        	<label class="col-sm-2 control-label"><font color="red">*&nbsp;&nbsp;</font>产品评级</label>
						                                        <div class="col-sm-8">
						                                    	   <input type="text" name="level" class="form-control" placeholder="产品评级" value="${product.level}">
						                                        </div>
									                        </div>
									                    </div>
									                 </div>
						                             <!-- <div class="hr-line-dashed"></div> -->
						                             <div class="row">
									                    <div class="col-sm-6">
									                        <div class="form-group">
									                            <label class="col-sm-4 control-label"><font color="red">*&nbsp;&nbsp;</font>认购费/申购费(%)</label>
						                                        <div class="col-sm-8">
						                                    	   <input type="text" name="subFee" class="form-control" placeholder="认购费/申购费" value='<fmt:formatNumber value="${product.subFee}" pattern="0.00" />'>
						                                        </div>
									                        </div>
									                    </div>
									                    <div class="col-sm-6">
									                        <div class="form-group">
									                        	<label class="col-sm-2 control-label"><font color="red">*&nbsp;&nbsp;</font>支付手续费(元)</label>
						                                        <div class="col-sm-8">
						                                    	   <input type="text" name="handlingFee" class="form-control" placeholder="支付手续费" value='<fmt:formatNumber value="${product.handlingFee}" pattern="0.00"/>'>
						                                        </div>
									                        </div>
									                    </div>
									                 </div>
						                             <!-- <div class="hr-line-dashed"></div> -->
						                             <div class="row">
									                    <div class="col-sm-6">
									                        <div class="form-group">
									                            <label class="col-sm-4 control-label">赎回费(%)</label>
						                                        <div class="col-sm-8">
						                                    	   <input type="text" name="redeemFee" class="form-control" placeholder="赎回费" value='<fmt:formatNumber value="${product.redeemFee}" pattern="0.00" />'>
						                                        </div>
									                        </div>
									                    </div>
									                    <div class="col-sm-6">
									                        <div class="form-group">
									                        	<label class="col-sm-2 control-label">管理费(%)</label>
						                                        <div class="col-sm-8">
						                                    	   <input type="text" name="manageFee" class="form-control" placeholder="管理费" value='<fmt:formatNumber value="${product.manageFee}" pattern="0.00" />'>
						                                        </div>
									                        </div>
									                    </div>
									                 </div>
						                             <!-- <div class="hr-line-dashed"></div> -->
						                             <div class="row">
									                    <div class="col-sm-6">
									                        <div class="form-group">
									                            <label class="col-sm-4 control-label"><font color="red">*&nbsp;&nbsp;</font>集资对象</label>
						                                        <div class="col-sm-8">
						                                    	   <input type="text" name="fundRaising" class="form-control" placeholder="集资对象" value="${product.fundRaising}">
						                                        </div>
									                        </div>
									                    </div>
									                    <div class="col-sm-6">
									                        <div class="form-group">
									                        	<label class="col-sm-2 control-label"><font color="red">*&nbsp;&nbsp;</font>咨询电话</label>
						                                        <div class="col-sm-8">
						                                    	   <input type="text" name="consultPhone" class="form-control" placeholder="咨询电话" value="${product.consultPhone}">
						                                        </div>
									                        </div>
									                    </div>
									                 </div>
						                             <!-- <div class="hr-line-dashed"></div> -->
						                             <div class="row">
									                    <div class="col-sm-6">
									                        <div class="form-group">
									                            <label class="col-sm-4 control-label"><font color="red">*&nbsp;&nbsp;</font>合同编号前缀</label>
						                                        <div class="col-sm-8">
						                                    	   <input type="text" name="contactPrefix" class="form-control" placeholder="合同编号前缀" value="${product.contactPrefix}">
						                                        </div>
									                        </div>
									                    </div>
									                    <div class="col-sm-6">
									                        <div class="form-group">
									                        	<label class="col-sm-2 control-label"><font color="red">*&nbsp;&nbsp;</font>产品状态</label>
						                                        <div class="col-sm-8">
						                                    	   <select id="state" class="form-control m-b" name="state" >
										                              <!-- <option value="">所有</option> -->
										                              <option value="0">即将上线</option>
							                                		  <option value="1">正在募集中</option>
							                                          <option value="2">募集完成</option>
										                           </select>
						                                        </div>
									                        </div>
									                    </div>
									                 </div>
									                 <!-- <div class="hr-line-dashed"></div> -->
						                             <div class="row">
									                    <div class="col-sm-6">
									                        <div class="form-group">
									                            <label class="col-sm-4 control-label"><font color="red">*&nbsp;&nbsp;</font>排序值</label>
						                                        <div class="col-sm-8">
						                                    	   <input type="text" name="orders" class="form-control" placeholder="排序值" value="${product.orders}">
						                                        </div>
									                        </div>
									                    </div>
									                 </div>
												<!-- <div class="hr-line-dashed"></div> -->
												<div class="row">
													<div class="col-sm-6">
														<div class="form-group">
															<label class="col-sm-4 control-label"><font
																color="red">*&nbsp;&nbsp;</font>产品图片</label>
															<div class="col-sm-8">
																<%-- <input type="text" name="thumbnail" class="form-control"  value="${product.thumbnail}"> --%>
																<%-- <a  title="Image from Unsplash" data-gallery=""><img style="width:400px;height:300px" src="product/downloadFile?filePath=${product.thumbnail}"></a> --%>
																<%-- <a  href="product/downloadFile?filePath=${product.contactFile}" title="Image from Unsplash" data-gallery="">${product.contactFile}</a>   --%>
																<div style="padding-top: 8px">
																	<input class="btn btn-outline btn-primary" type="file"
																		name="productImage" accept=".jpg,.jpeg,.png,.bmp">
																</div>
															</div>
														</div>
													</div>
												</div>
												<!-- <div class="hr-line-dashed"></div> -->
									                 <div class="row">
									                    <div class="col-sm-6">
									                        <div class="form-group">
									                            <label class="col-sm-4 control-label"><font color="red">*&nbsp;&nbsp;</font>基金投向</label>
						                                        <div class="col-sm-8">
						                                    	   <textarea id="fundInvest" name="fundInvest" class="form-control" placeholder="基金投向(1-512字)" rows="10">${product.fundInvest}</textarea>
						                                        </div>
									                        </div>
									                    </div>
									                 </div>
												<!-- <div class="hr-line-dashed"></div> -->
												<div class="row">
													<div class="col-sm-6">
														<div class="form-group">
															<label class="col-sm-4 control-label"><font
																color="red">*&nbsp;&nbsp;</font>投资范围</label>
															<div class="col-sm-8">
																<textarea id="investScope" name="investScope"
																	class="form-control" placeholder="投资范围(1-1000字)"
																	rows="10"></textarea>
															</div>
														</div>
													</div>
												</div>
												<!-- <div class="hr-line-dashed"></div> -->
												<!-- <div class="row">
									                    <div class="col-sm-6">
									                        <div class="form-group">
									                            <label class="col-sm-4 control-label">产品档次</label>
						                                        <div class="col-sm-8">
						                                           <button id="doAddModel" class="delete btn btn-outline btn-primary" type="button">新增档次</button>
						                                    	   <table id="modelEditable" class="table table-striped table-bordered table-hover">
										                                <thead>
										                                <tr>
										                                    <th>档次</th>
										                                    <th>认购范围</th>
										                                    <th>预期收益</th>
										                                    <th style="background-color:white;">操作</th>
										                                </tr>
										                                </thead>
										                                <tbody>
										                                </tbody>
										                            </table>
						                                       </div>
									                        </div>
									                    </div>
									                 </div> -->
												<!-- <div class="hr-line-dashed"></div> -->
												<div class="row">
													<div class="col-sm-6">
														<div class="form-group">
															<label class="col-sm-4 control-label"><font
																color="red">*&nbsp;&nbsp;</font>风控措施</label>
															<div class="col-sm-8">
																<textarea id="riskControl" name="riskControl"
																	class="form-control" placeholder="风控措施(1-1000字)"
																	rows="10"></textarea>
															</div>
														</div>
													</div>
												</div>
												<!-- <div class="hr-line-dashed"></div> -->
												<div class="row">
													<div class="col-sm-6">
														<div class="form-group">
															<label class="col-sm-4 control-label">备注</label>
															<div class="col-sm-8">
																<textarea id="remark" name="remark" class="form-control"
																	placeholder="备注(1-1000字)" rows="10"></textarea>
															</div>
														</div>
													</div>
												</div>
												<!-- <div class="hr-line-dashed"></div> -->
						                             <div class="row">
									                    <div class="col-sm-6">
									                        <div class="form-group">
									                            <label class="col-sm-4 control-label">合同示例模版下载</label>
						                                        <div class="col-sm-8">
						                                        	<div style="padding:6px 12px;font-size: 14px">
						                                            	<a  href="product/downloadFile?filePath=${filePath}docs/contactTemplate/基金合同示例模版.docx" title="基金合同示例模版.docx" data-gallery="">基金合同示例模版.docx</a>   
						                                        	</div>
						                                        </div>
									                        </div>
									                    </div>
									                 </div>
									                <!-- <div class="hr-line-dashed"></div> -->
												<div class="row">
													<div class="col-sm-6">
														<div class="form-group">
															<label class="col-sm-4 control-label"><font
																color="red">*&nbsp;&nbsp;</font>产品合同</label>
															<div class="col-sm-8">
																<%-- <input id="contactFile" readonly style="border:0px;background:#0f0;background-color:transparent;"  type="text" class="form-control"  value="${product.contactFile}"> --%>
																<%-- <a  href="product/downloadFile?filePath=${product.contactFile}" title="Image from Unsplash" data-gallery="">${product.contactFile}</a>   --%>
																<input class="btn btn-outline btn-primary" type="file"
																	name="productContactFile" accept=".docx">
															</div>
														</div>
													</div>
												</div>
									                  <!-- <div class="hr-line-dashed"></div> -->
						                             <div class="row">
									                    <div class="col-sm-6">
									                        <div class="form-group">
									                            <label class="col-sm-4 control-label">占位符说明表</label>
						                                        <div class="col-sm-8">
						                                        	<!-- <div style="padding:6px 12px;font-size: 14px">
						                                        	</div> -->
						                                        	<table class="table table-striped table-bordered table-hover dataTable no-footer" role="grid" aria-describedby="modelEditable_info">
										                                <thead>
											                                <tr>
											                                    <th>占位符</th>
											                                    <th>名称</th>
											                                    <th>备注</th>
											                                </tr>
										                                </thead>
										                                <tbody>
										                                	<tr>
										                                		<td>[ContractNumber]</td>
										                                		<td>合同编号</td>
										                                		<td>需要填写合同编号的位置请用“[ContractNumber]”占位</td>
										                                	</tr>
										                                	<tr>
										                                		<td>[InvestorName]</td>
										                                		<td>投资人姓名</td>
										                                		<td>需要填写投资人姓名位置，用“[InvestorName]”占位</td>
										                                	</tr>
										                                	<tr>
										                                		<td>[InvestorSignName]</td>
										                                		<td>投资人签名</td>
										                                		<td>需要投资人签名的位置用“[InvestorSignName]”</td>
										                                	</tr>
										                                	<tr>
										                                		<td>[SignTime]</td>
										                                		<td>签单时间</td>
										                                		<td>填写签单时间的位置用“[SignTime]”占位</td>
										                                	</tr>
										                                	<tr>
										                                		<td>[Amount]</td>
										                                		<td>投资金额</td>
										                                		<td>需要填写投资金额的位置用“[Amount]”占位</td>
										                                	</tr>
										                                	<tr>
										                                		<td>[IDCard]</td>
										                                		<td>证件号</td>
										                                		<td>需要填写证件号的位置用“[IDCard]”占位</td>
										                                	</tr>
										                                	<tr>
										                                		<td>[Address]</td>
										                                		<td>通信地址</td>
										                                		<td>需要填写通信地址的位置用“[Address]“占位</td>
										                                	</tr>
										                                	<tr>
										                                		<td>[Phone]</td>
										                                		<td>联系电话</td>
										                                		<td>需要填写联系电话的位置用”[Phone]“占位</td>
										                                	</tr>
										                                	<tr>
										                                		<td>[Email]</td>
										                                		<td>邮箱</td>
										                                		<td>需要填写邮箱的位置用”[Email]“占位</td>
										                                	</tr>
										                                	<tr>
										                                		<td>[AccountName]</td>
										                                		<td>开户名称</td>
										                                		<td>需要填写投资人开户名称的位置用”[AccountName]“占位</td>
										                                	</tr>
										                                	<tr>
										                                		<td>[BankName]</td>
										                                		<td>开户银行</td>
										                                		<td>需要填写投资人开户银行的位置用“[BankName]”占位</td>
										                                	</tr>
										                                	<tr>
										                                		<td>[BankAccount]</td>
										                                		<td>银行帐（卡）号</td>
										                                		<td>需要填写投资人银行账号的位置用“[BankAccount]”占位</td>
										                                	</tr>
										                                </tbody>
										                            </table>
																	备注：
																		1.基金合同上需要填写用户信息的位置，请参照上表，进行占位；
																		2.基金合同请用word2007以上的版本。
						                                        </div>
									                        </div>
									                    </div>
									                 </div>
												
												<!-- <div class="hr-line-dashed"></div> -->
												<div class="row">
													<div class="col-sm-6">
														<div class="form-group">
															<label class="col-sm-4 control-label"><font
																color="red">*&nbsp;&nbsp;</font>团队组长默认管理提成(%)</label>
															<div class="col-sm-8">
																<input type="text" name="defaultDividend"
																	class="form-control" placeholder="团队组长默认管理提成"
																	value='<fmt:formatNumber value="${product.defaultDividend}" pattern="0.00" />'>
															</div>
														</div>
													</div>
												</div>
												<!-- <div class="hr-line-dashed"></div> -->
												<div class="row">
													<div class="col-sm-6">
														<div class="form-group">
															<label class="col-sm-4 control-label"><font
																color="red">*&nbsp;&nbsp;</font>理财师默认佣金(%)</label>
															<div class="col-sm-8">
																<input type="text" name="defaultCommission"
																	class="form-control" placeholder="理财师默认佣金"
																	value='<fmt:formatNumber value="${product.defaultCommission}" pattern="0.00" />'>
															</div>
														</div>
													</div>
												</div>
												<!-- <div class="hr-line-dashed"></div> -->
												<!-- <div class="row">
													<div class="col-sm-6">
														<div class="form-group">
															<label class="col-sm-4 control-label">审核</label>
															<div class="col-sm-8">
																<select class="form-control m-b" id="auditState"
																	name="auditState">
																	<option value="0">审核未通过</option>
																	<option value="1">审核已通过</option>
																</select>
															</div>
														</div>
													</div>
												</div> -->
												<!-- <div class="hr-line-dashed"></div> -->
												<div class="form-group">
													<div class="col-sm-4 col-sm-offset-5">
														<button class="btn btn-white" type="button"
															onclick='javascript:window.location.href="product/list"'>取
															消</button>
														<button class="btn btn-primary" type="submit">保 存</button>
													</div>
												</div>
											</form>

											<!-- update model start -->
											<div class="modal inmodal fade" id="updateModel"
												tabindex="-1" role="dialog" aria-hidden="true">
												<div class="modal-dialog modal-lg">
													<div class="modal-content">
														<div class="modal-header">
															<button type="button" class="close" data-dismiss="modal">
																<span aria-hidden="true">&times;</span><span
																	class="sr-only">Close</span>
															</button>
															<h4 class="modal-title" id="grade_edit_id">产品档次</h4>
														</div>
														<div class="modal-body">
															<div id="updateBody"></div>
															<form id="gradeForm" class="form-horizontal">
																<input type="text" style="display: none"
																	name="productId" class="form-control"
																	value="${product.id}"> <input type="text"
																	style="display: none" id="gradeId" name="id"
																	class="form-control">
																<div class="form-group">
																	<label class="col-sm-3 control-label"><font
																		color="red">*&nbsp;&nbsp;</font>档次</label>
																	<div class="col-sm-8">
																		<input type="text" id="grade" name="grade"
																			class="form-control">
																	</div>
																</div>
																<div class="form-group">
																	<label class="col-sm-3 control-label"><font
																		color="red">*&nbsp;&nbsp;</font>认购最小金额(万元)</label>
																	<div class="col-sm-8">
																		<input type="text" id="subScopeStart"
																			name="subScopeStart" class="form-control">
																	</div>
																</div>
																<div class="form-group">
																	<label class="col-sm-3 control-label"><font
																		color="red">*&nbsp;&nbsp;</font>认购最大金额(万元)</label>
																	<div class="col-sm-8">
																		<input type="text" id="subScopeEnd" name="subScopeEnd"
																			class="form-control">
																	</div>
																</div>
																<div class="form-group">
																	<label class="col-sm-3 control-label"><font
																		color="red">*&nbsp;&nbsp;</font>预期收益</label>
																	<div class="col-sm-8">
																		<input type="text" id="prospectiveEarnings"
																			name="prospectiveEarnings" class="form-control">
																	</div>
																</div>
															</form>
														</div>
														<div class="modal-footer">
															<button type="button" class="btn btn-white"
																data-dismiss="modal">取 消</button>
															<button type="button" id="saveModel"
																class="btn btn-primary">保 存</button>
														</div>
													</div>

												</div>
											</div>
											<!-- update model end -->
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>

			<!-- 底部版权 -->
			<jsp:include page="/WEB-INF/jsp/common/main-footer.jsp"></jsp:include>

		</div>
	</div>

	<!-- Mainly scripts -->
	<script src="js/jquery-2.1.1.js"></script>
	<script src="js/bootstrap.min.js"></script>
	<script src="js/plugins/metisMenu/jquery.metisMenu.js"></script>
	<script src="js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
	<script src="js/jquery.serialize-object.min.js" type="text/javascript"></script>
	<script src="js/plugins/validate/jquery.validate.min.js"
		type="text/javascript"></script>
	<script src="js/plugins/validate/jquery.validate.messages-zh_CN.js"
		type="text/javascript"></script>
	<!-- Custom and plugin javascript -->
	<script src="js/inspinia.js"></script>
	<script src="js/plugins/pace/pace.min.js"></script>
	<script src="js/plugins/bootbox/bootbox.min.js" type="text/javascript"></script>
	<!-- Data picker -->
	<script src="js/plugins/datapicker/bootstrap-datepicker.js"></script>

	<!-- Data Tables -->
	<script src="js/plugins/dataTables/jquery.dataTables.min.js"></script>
	<script src="js/plugins/dataTables/dataTables.bootstrap.js"></script>
	<script src="js/plugins/dataTables/dataTables.responsive.js"></script>
	<script src="js/plugins/dataTables/dataTables.tableTools.min.js"></script>

	<!-- 业务 -->
	<script src="js/ajaxfileupload.js"></script>
	<script src="js/jquery.form.js"></script>
	<script src="js/product/product-add.js"></script>
	<script src="js/product/product-grade-module.js"></script>
	<script src="js/product/FormatUtils.js"></script>


	<!-- Page-Level Scripts -->
	<script>
		$(document).ready(function() {
			ProductAdd.init();
			ProductGradeModule.init();

			initSpecifiedContent();

		});

		function initSpecifiedContent() {
			/* $("#incomeType").val("${product.incomeType}");
			$("#operationMode").val("${product.operationMode}");
			$("#state").val("${product.state}");
			$("#riskControl").text("${product.riskControl}");
			$("#remark").text("${product.remark}");
			$("#contactFile").val($("#contactFile").val().match(/[^\\/]*$/)[0]); */

			$('#recruitStartTime').datepicker({
				todayBtn : "linked",
				keyboardNavigation : false,
				forceParse : false,
				calendarWeeks : true,
				autoclose : true
			});

			$('#recruitEndTime').datepicker({
				todayBtn : "linked",
				keyboardNavigation : false,
				forceParse : false,
				calendarWeeks : true,
				autoclose : true
			});
		}

		function resetFunction() {
			$('#addForm')[0].reset();
			initSpecifiedContent();
		}
	</script>

</body>
</html>